package com.wuyoucar.entity;



import java.io.Serializable;

/*
    银行卡表实体类
    用于绑定银行卡
 */
public class TBank implements Serializable {
    private Integer bankid;
    private Integer userid;
    private String  bankcard;
    private double bankmoney; //银行卡余额
    private String  phonenum;
    private String  bankname; //银行名

    public TBank() {
    }

    public TBank(Integer userid, String bankcard) {
        this.userid = userid;
        this.bankcard = bankcard;
    }

    public TBank(String bankcard, Double bankmoney) {
        this.bankcard = bankcard;
        this.bankmoney=bankmoney;
    }

    public TBank(Integer bankid, Integer userid, String bankcard, double bankmoney, String phonenum, String bankname) {
        this.bankid = bankid;
        this.userid = userid;
        this.bankcard = bankcard;
        this.bankmoney = bankmoney;
        this.phonenum = phonenum;
        this.bankname = bankname;
    }

    public String getBankname() {
        return bankname;
    }

    public void setBankname(String bankname) {
        this.bankname = bankname;
    }

    public Integer getBankid() {
        return bankid;
    }

    public void setBankid(Integer bankid) {
        this.bankid = bankid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public double getBankmoney() {
        return bankmoney;
    }

    public void setBankmoney(double bankmoney) {
        this.bankmoney = bankmoney;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    @Override
    public String toString() {
        return "TBank{" + "bankid=" + bankid + ", userid=" + userid + ", bankcard='" + bankcard + '\'' + ", bankmoney=" + bankmoney + ", phonenum='" + phonenum + '\'' + '}';
    }
}
